package java_012_zuoye01;

import java.util.Scanner;

public class java10 {
	public static void main(String[] args) {
		int[] arr={1,2,3,4,5,6,7,8,9};
		System.out.println(existNum(arr));
	}

	public static boolean existNum(int[] arr) {
		Scanner sc = new Scanner(System.in);
		int num =sc.nextInt();
		for (int i=0;i<arr.length;i++){
			if (num == arr[i]){
				return true;
			}
		}
		return false;
	}
}
